<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改表单</title>
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/js/common/jquery-3.4.1.js"></script>
<!--修改的form页面 start-->
<form class="layui-form" id="addForm" lay-filter="updateFormFilter">
    <div class="layui-form-item">
        <label class="layui-form-label">社团名称</label>
        <div class="layui-input-inline">
            <input type="text" name="a_name"  required  lay-verify="required" placeholder="请输入社团名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">社长学号</label>
        <div class="layui-input-inline">
            <input type="text" name="username"  required lay-verify="required" placeholder="请输入社长学号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">12位</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-inline">
            <input type="text" name="creationtime" id="creationtime" readonly="readonly" required lay-verify="required"  autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" style="display: none">
        <label class="layui-form-label">社团人数</label>
        <div class="layui-input-inline">
            <input type="radio" name="number" value="1" title="创建时默认为1" checked />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">图片地址</label>
        <div class="layui-input-inline">
            <input type="text" name="a_url"  required lay-verify="required"  autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">社团状态</label>
        <div class="layui-input-block">
            <input type="radio" name="examine" value="1" title="等待审核" checked />
            <input type="radio" name="examine" value="0" title="审核通过"  />
        </div>
    </div>



    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="add">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<!--修改的form页面 end-->

<script>
    layui.use(['form','laydate'],function () {
            var form = layui.form;
            var laydate = layui.laydate;

        //updateForm表单的创建时间--start
        laydate.render({
            elem: '#creationtime',
            value: new Date() ,
            done: function(value, date){}
        });
        //updateForm表单的创建时间--end

        //给form表单的输入框绑定默认值（赋值）
        //第一个参数:form标签lay-filter的属性值
        //第二个参数:json对象（输入框的name属性:要赋的值）
        //注意事项:单选按钮，直接赋值,默认选中对应的单选按钮
        form.val('updateFormFilter',{
            a_name:,
            username:,
            creationtime:,
            a_url:,
            examine:

        })
    })
</script>
</body>
</html>